﻿<%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="SimpleAddition._Default" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %>.</h1>
            </hgroup>
        </div>
    </section>
    
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
   <h1>Enter two numbers to add them!</h1>
    <p>&nbsp;</p>
    <table>
        <tr>
            <td>&nbsp;<strong>Enter first number :</strong></td>
            <td>
                <asp:TextBox ID="tb_FirstNumber" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tb_FirstNumber" CssClass="error" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tb_FirstNumber" CssClass="validation-summary-errors" ErrorMessage="Only Numbers &gt;=0" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td><strong>+</strong></td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td><strong>Enter second number :</strong></td>
            <td>
                <asp:TextBox ID="tb_SecondNumber" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tb_SecondNumber" CssClass="error" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tb_SecondNumber" CssClass="validation-summary-errors" ErrorMessage="Only Numbers &gt;=0" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
            </td>
            <td></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <asp:Button ID="btn_Addition" runat="server" Text="Add" />
            </td>
            <td></td>
        </tr>
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><span class="bold-black">Result :</span></strong></td>
            <td>
                <asp:Label ID="lbl_Result" runat="server" CssClass="bold-green"></asp:Label>
            </td>
            <td>&nbsp;</td>
        </tr>
    </table>
</asp:Content>
